package com.hsnn.medstgmini.sys.model;

public enum HenburType {
	
	other(0, "其他"), zx(1, "中心"), wsj(2, "卫生局"), wjw(3, "卫计委"), wjj(4, "物价局");

	private int key;
	private String value;

	private HenburType(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(int key) {
		for (HenburType ut : HenburType.values()) {
			if (ut.key == key) {
				return ut.value;
			}
		}
		return "";
	}

	public static HenburType getHenburType(int key) {
		for (HenburType ut : HenburType.values()) {
			if (ut.key == key) {
				return ut;
			}
		}
		return null;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
